import time

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
driver.maximize_window()
time.sleep(5)
cookie = [
    {
        "name":"BDUSS_BFESS",
        "value":"9QMkhqa3RufkhpWlhHM3d5RmFFTlJEdlBJdXR0MWNBZVF0M1VrNFJqV0tuZU5pRUFBQUFBJCQAAAAAAAAAAAEAAADHy5sEc2t5d2luZ2ZzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIoQvGKKELxiN0"
    },
    {
        "name":"BDUSS",
        "value":"9QMkhqa3RufkhpWlhHM3d5RmFFTlJEdlBJdXR0MWNBZVF0M1VrNFJqV0tuZU5pRUFBQUFBJCQAAAAAAAAAAAEAAADHy5sEc2t5d2luZ2ZzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIoQvGKKELxiN0"
    }
]

driver.add_cookie(cookie[0])
driver.add_cookie(cookie[1])
driver.get("https://www.baidu.com")
driver.refresh()
time.sleep(5)
driver.quit()

